package c.e.a.b.b.h;

import com.huawei.hms.framework.common.ContainerUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public final class h {
    public final List<String> a = new ArrayList();
    public final Object b;

    public h(Object obj, v vVar) {
        Objects.requireNonNull(obj, "null reference");
        this.b = obj;
    }

    public final h a(String str, Object obj) {
        List list = this.a;
        String valueOf = String.valueOf(obj);
        StringBuilder stringBuilder = new StringBuilder(valueOf.length() + (str.length() + 1));
        stringBuilder.append(str);
        stringBuilder.append(ContainerUtils.KEY_VALUE_DELIMITER);
        stringBuilder.append(valueOf);
        list.add(stringBuilder.toString());
        return this;
    }

    public final String toString() {
        StringBuilder stringBuilder = new StringBuilder(100);
        stringBuilder.append(this.b.getClass().getSimpleName());
        stringBuilder.append('{');
        int size = this.a.size();
        for (int i = 0; i < size; i++) {
            stringBuilder.append((String) this.a.get(i));
            if (i < size - 1) {
                stringBuilder.append(", ");
            }
        }
        stringBuilder.append('}');
        return stringBuilder.toString();
    }
}
